package com.example.zzh.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.zzh.entity.ZzhProductAttribute;
import com.example.zzh.mapper.ZzhProductAttributeMapper;
import com.example.zzh.mapper.ZzhStaffMapper;
import com.example.zzh.service.ZzhProductAttributeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 产品属性表 服务实现类
 * </p>
 *
 * @author zzh
 * @since 2023-08-12
 */
@Service
public class ZzhProductAttributeServiceImpl extends ServiceImpl<ZzhProductAttributeMapper, ZzhProductAttribute> implements ZzhProductAttributeService {

    @Resource
    private ZzhProductAttributeMapper zzhProductAttributeMapper;

    @Override
    public IPage pageName(Page<ZzhProductAttribute> page) {
        return zzhProductAttributeMapper.pageName(page);
    }

    @Override
    public IPage pageNames(Page<ZzhProductAttribute> page, Wrapper wrapper) {
        return zzhProductAttributeMapper.pageNames(page,wrapper);
    }

    @Override
    public ZzhProductAttribute getRoleById(Long id) {
        return zzhProductAttributeMapper.selectById(id);
    }
}
